package com.guoqiang.struct;

public class SwitchDemo02 {
    public static void main(String[] args) {
        String name = "张大友";
        switch (name) {
            case "张大友":
                System.out.println("张大友");
                break;
            case "张国强":
                System.out.println("张国强");
                break;
            default:
                System.out.println("未知参数");
        }
    }
}
